WCPay\MultiCurrency\MultiCurrency D

Total Complexity 223
Dependencies 29
Dependents 26
Total lines 1,777
Lines of code 856
Logical lines of code 477
Comment lines 666
Methods 71
Properties 21

Methods 71

Method Rating Maintainability Complexity Lines of code
update_selected_currency()
A
49 12 28
init_hooks()
A
46 11 35
get_multi_currency_onboarding_simulation_variables()
A
49 9 31
get_all_customer_currencies()
A
47 7 36
get_price()
S
53 7 21
init()
S
47 6 35
update_single_currency_settings()
S
54 7 19
init_settings_pages()
S
56 7 18
get_cached_currencies()
S
53 6 23
update_selected_currency_by_geolocation()
S
58 6 16
initialize_enabled_currencies()
S
49 5 31
get_raw_conversion()
S
53 5 22
set_enabled_currencies()
S
55 5 19
add_order_meta_on_refund()
S
57 5 17
remove_currency_settings()
S
57 5 15
simulate_client_currency()
S
51 4 29
display_geolocation_currency_update_notice()
S
51 4 26
add_simulation_params_to_preview_urls()
S
53 3 33
is_multi_currency_settings_page()
S
66 5 9
update_manual_rate_currencies_notice_option()
S
60 4 13
get_account_available_currencies()
S
60 4 13
get_backend_formatted_wc_price()
S
59 4 13
set_client_format_and_rounding_precision()
S
52 3 24
initialize_available_currencies()
S
57 3 17
get_adjusted_price()
S
57 3 17
add_woo_admin_notes()
S
65 4 9
get_file_version()
S
66 4 7
set_new_customer_currency_meta()
S
69 4 6
maybe_update_customer_currencies_option()
S
61 3 13
check_store_currency_for_change()
S
61 3 13
update_settings()
S
63 3 11
get_switcher_widget_markup()
S
56 2 19
get_stored_currency_code()
S
65 3 9
remove_woo_admin_notes()
S
72 3 5
init_rest_api()
S
68 3 7
register_script_with_dependencies()
S
59 2 14
get_single_currency_settings()
S
60 2 12
ceil_price()
S
71 2 6
possible_simulation_activation()
S
68 2 8
validate_currency_code()
S
73 2 5
remove_currencies_settings()
S
74 2 5
is_customer_currencies_data_valid()
S
78 2 3
get_available_currencies()
S
71 2 6
get_selected_currency()
S
72 2 5
enqueue_admin_scripts()
S
66 2 9
instance()
S
74 2 5
recalculate_cart()
S
75 2 5
get_default_currency()
S
70 2 6
get_enabled_currencies()
S
71 2 6
update_selected_currency_by_url()
S
70 2 6
__construct()
S
62 1 11
has_additional_currencies_enabled()
S
76 1 4
get_currency_switcher_widget()
S
82 1 3
log_and_throw_invalid_currency_exception()
S
71 1 5
init_widgets()
S
75 1 4
is_using_auto_currency_switching()
S
78 1 3
register_admin_scripts()
S
65 1 10
add_props_to_wcpay_js_config()
S
76 1 4
clear_cache()
S
77 1 4
get_compatibility()
S
82 1 3
get_frontend_prices()
S
82 1 3
is_initialized()
S
81 1 3
get_frontend_currencies()
S
82 1 3
set_default_currency()
S
75 1 4
get_storefront_integration()
S
82 1 3
get_store_currencies()
S
69 1 7
is_using_storefront_switcher()
S
78 1 3
is_simulation_enabled()
S
79 1 3
get_apply_charm_only_to_products()
S
78 1 3
adjust_amount_for_selected_currency()
S
79 1 3
get_settings()
S
63 1 10